﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WoodAdmin.Models.ViewModels
{
    public class ResultViewModel
    {
        public ResultViewModel() { }
        public ResultViewModel(string Message, ResultCode status, object obj = null)
        {
            this.Status = status;
            this.Msg = Message;
            this.Obj = obj;
        }
        public ResultCode Status { get; set; }
        public string Msg { get; set; }
        public object Obj { get; set; }
    }
    public enum ResultCode
    {
        OK = 1,
        Error = 2
    }
}
